/**
 * @product: PCDC-CMS
 * @copyright: FSAI-南征北战信息科技
 * @filename: com.fsai.cms.util.UrlPathTool.java
 *
 * @link: Http://www.fastsai.com
 * @jdkv: Jdk 1.8
 */
package com.fsai.cms.util;

import java.net.URL;

/**
 * URL路径工具
 * 
 * @project: pcdc-cms-web
 *
 * @author: JaffeHe
 * @email: JaffeHe@foxmail.com
 * @date: 2021-03-13 18:46
 *
 * @ChangeLog<br/>
 * 				Developer Date Comment <br/>
 */
public class UrlPathTool {

	public static String getUri(String url) {
		try {
			URL urlInfo = new URL(url);
			return urlInfo.getPath();
		} catch (Exception e) {
			String s = url.substring(url.indexOf("/", 8));
			return s;
		}
	}
	
}
